Skip to content

Fix/subscriptions auth improvements - #1324

Merged
aji70 merged 4 commits into
MyFanss:mainfrom
devoclan:fix/subscriptions-auth-improvements
Jun 28, 2026
Merged

Fix/subscriptions auth improvements#1324
aji70 merged 4 commits into
MyFanss:mainfrom
devoclan:fix/subscriptions-auth-improvements

Conversation

@devoclan

@devoclan devoclan commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

closes #1037
closes #1038
closes #1036
closes #1035
Backend module Games (games). Return consistent error shape on failure.
Backend module Games (games). Document endpoints in Swagger/OpenAPI.
Backend module Games (games). Add rate limiting on write endpoints.

devoclan added 4 commits June 28, 2026 08:59
Apply ThrottlerGuard at controller level and @Throttle decorators on all
POST endpoints (checkout, validate, confirm, fail, cancel) to prevent abuse.
Cover login, register, requestChallenge, verifyChallenge endpoints with
mocked AuthService and WalletAuthService. Tests verify delegation,
validation, network mismatch handling, and error propagation.
Add typed DTOs for checkout request/response bodies (CreateCheckoutDto,
ValidateBalanceDto, ConfirmSubscriptionDto, etc.) and wire them into
controller with @apiresponse type references and detailed descriptions.
Add SubscriptionsExceptionFilter that normalizes all errors to a
consistent {statusCode, error, message, timestamp, path} shape.
Applied at controller level via @UseFilters.
@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@devoclan Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@aji70
aji70 merged commit d764fb0 into MyFanss:main Jun 28, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants